package com.ketaichan.zolon_printer.models;

public class OrderGoodsItem {
    int id;
    int discountExtraPrice;
    int spuId;
    String spuName;
    String unit;
    int skuId;
    String skuName;
    String keyValue;
    String remark;
    String properties;
    String picUrl;
    String count;
    int times;
    boolean commentStatus;
    int price;
    int discountPrice;
    int payPrice;
    int payPriceAll;
    int payPriceExtra;
    int discountPriceTotal;
    String rateInTotalPrice;
    int afterSaleStatus;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getDiscountExtraPrice() {
        return discountExtraPrice;
    }

    public void setDiscountExtraPrice(int discountExtraPrice) {
        this.discountExtraPrice = discountExtraPrice;
    }

    public int getSpuId() {
        return spuId;
    }

    public void setSpuId(int spuId) {
        this.spuId = spuId;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getSkuId() {
        return skuId;
    }

    public void setSkuId(int skuId) {
        this.skuId = skuId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getKeyValue() {
        return keyValue;
    }

    public void setKeyValue(String keyValue) {
        this.keyValue = keyValue;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getProperties() {
        return properties;
    }

    public void setProperties(String properties) {
        this.properties = properties;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public boolean isCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(boolean commentStatus) {
        this.commentStatus = commentStatus;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(int discountPrice) {
        this.discountPrice = discountPrice;
    }

    public int getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(int payPrice) {
        this.payPrice = payPrice;
    }

    public int getPayPriceAll() {
        return payPriceAll;
    }

    public void setPayPriceAll(int payPriceAll) {
        this.payPriceAll = payPriceAll;
    }

    public int getPayPriceExtra() {
        return payPriceExtra;
    }

    public void setPayPriceExtra(int payPriceExtra) {
        this.payPriceExtra = payPriceExtra;
    }

    public int getDiscountPriceTotal() {
        return discountPriceTotal;
    }

    public void setDiscountPriceTotal(int discountPriceTotal) {
        this.discountPriceTotal = discountPriceTotal;
    }

    public String getRateInTotalPrice() {
        return rateInTotalPrice;
    }

    public void setRateInTotalPrice(String rateInTotalPrice) {
        this.rateInTotalPrice = rateInTotalPrice;
    }

    public int getAfterSaleStatus() {
        return afterSaleStatus;
    }

    public void setAfterSaleStatus(int afterSaleStatus) {
        this.afterSaleStatus = afterSaleStatus;
    }

    /**
     * 获取完整的商品名称
     * @return 商品名称，spu+sku+口味+加料
     */
    public String getGoodsName() {
        String name = spuName;
        if (keyValue != null && !keyValue.equals("")) {
            name += "(" + keyValue + ")";
        }
        return name;
    }
}
